<div class="content"><h1>角色管理</h1>

<table class="table">
  <tr>
    <th>名称</th>
    <th>描述</th>
    <th>操作</th>
  </tr>

<% @roles.each do |role| %>
  <tr>
    <td><%=h role.name %></td>
    <td><%=h role.description %></td>
    <td><%= link_to '编辑', edit_admin_role_path(role) %>|
    <%= link_to '删除', admin_role_path(role), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '添加角色', new_admin_role_path %>
</div>